package com.service.impl;

import com.dao.EnterpriseDao;
import com.dao.impl.EnterpriseDaoImpl;
import com.entry.Enterprise;
import com.service.EnterpriseService;

import java.util.ArrayList;

public class EnterpriseServiceImpl implements EnterpriseService {
    private EnterpriseDao enterpriseDao=new EnterpriseDaoImpl();
    @Override
    public ArrayList<Enterprise> selectAll() {
        return enterpriseDao.selectAll();
    }

    @Override
    public Enterprise selectByEnterprise_id(int Enterprise_id) {
        return enterpriseDao.selectByEnterprise_id(Enterprise_id);
    }
}
